<div class="bgtopic">
    <div class="topic_title"> Menu</div>
</div>
<ul id="menuV2">
    <?php
    $session = new CHttpSession;
    $session->open();

    $userID = $session['user_salesmart'][1];
    if ($userID > 98) {
        ?>
        <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/Chuong-trinh-game-show"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/program_files_folder.png"/>Chương trình</a>
            <ul class="sub">
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-chuong-trinh">Thêm chương trình</a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/cai-dat-qua">Cài đặt quà</a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/so-nguoi-tham-gia">Số người đã tham gia</a></li>
            </ul>
        </li>
        <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-giao-dich"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/address_book.png"/>Danh sách giao dịch</a></li>
    <?php } ?>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/thong-tin-ca-nhan"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/user_business_info_32.png"/>Thông tin cá nhân</a>

    </li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/doi-mat-khau"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/comment_user_add_32.png"/>Đổi mật khẩu</a>

    </li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/mua-quang-cao"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/coins.png"/>Mua quảng cáo</a>

    </li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/lich-su-giao-dich"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/drive_product_red_usb.png"/>Lịch sử giao dịch</a>

    </li>

    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/edit-thong-tin-luat-su"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/user1.png"/>Thông tin luật sư</a>

    </li>
   <?php 
   if($userID > 98){
   ?>
     <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-luat-su"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/mail.png"/>Danh sách luật sư</a>

    </li>
   <?php }?>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/newspaper_add_32.png"/>Đăng tin quảng cáo</a>
        <ul class="sub">
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-slider">Quản lý slider</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-slider">Thêm slider</a>   </li>

            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-panel">Quản lý banner</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-panel">Thêm banner</a></li>
            <?php if ($userID > 98) {
                ?>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-page">Quản lý bài viết</a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-page">Thêm bài viết</a></li>
            <?php } ?>
        </ul>
    </li>
    
    
    <?php
    if ($userID > 98) {
        ?>
        <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-doi-tac"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/people.png"/>Đối tác</a>
            <ul class="sub">
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-doi-tac">Thêm đối tác</a></li>
            </ul>
        </li>
         <li><a href=""><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/comments.png"/>Liên hệ</a>
            <ul class="sub">
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-lien-he-luat-su">Danh sách liên hệ luật sư</a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-lien-he-quang-cao">Danh sách liên hệ quảng cáo</a></li>
            </ul>
        </li>
          <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-van-ban-luat"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/book.png"/>Văn bản pháp luật</a>
            <ul class="sub">
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-van-ban-luat">Thêm văn bản pháp luật</a></li>
            </ul>
        </li>
        <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-to-chuc"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/tochuc.png"/>Trung tâm - tổ chức</a>
            <ul class="sub">
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-to-chuc">Thêm Trung tâm - tổ chức</a></li>
            </ul>
        </li>
         <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-news"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/news.png"/>Tin tức - sự kiện</a>
            <ul class="sub">
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-news">Thêm Tin tức - sự kiện</a></li>
            </ul>
        </li>
    <?php } ?>
        <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/cau-hinh"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/settings.png"/>Cấu hình</a></li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/page/huong-dan"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/info_button_32.png"/>Hướng dẫn</a>

    </li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/thoat-he-thong"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/exit.png"/>Thoát</a>

    </li>

</ul>

<?php $this->renderPartial('//home/commercial'); ?>